<?php 
/* session_save_path("D:\Apache2.2");
session_start();
 */
$_SESSION["admin"] = null;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Login</title>
<style type="text/css">
<!—
.alert {color: red}
.textinput {width:160px}
.btn {width:80px}
table {border: 3px double;background-color:#eeeeee;}
-->
</style>
<script language="javascript">
<!--
function doCheck(){
    if(document.frmLogin.username.value==""){
        alert('请输入你的用户名！');
        return false;
    }
    if(document.frmLogin.password.value==""){
        alert('请输入你的密码！');
        return false;
    }
}

-->
</script>
</head>
<body>
<form name="frmLogin" method="post" action="../action/admin/loginValid.php" onSubmit="return doCheck();">
<table border="0" cellpadding="8" width="350" align="center">
<tr><td colspan="2" align="center" class="alert"><?php echo $errmsg;?></td></tr>

  <tr><td>用户名：</td>
  <td><input name="username" type="text" id="username" class="textinput" /></td>
</tr>
<tr><td>密码：</td>
    <td><input name="pwd" type="password" id="password" class="textinput" /></td>
</tr>
<tr><td>验证码：</td>
<td><input name="auth" type="text"  maxlength="4" /></td>
<td><img src="auth.php" border="0" width="50" height="25"/></td>

 	
</tr>
<tr><td colspan="2" align="center">
    <input type="submit" class="btn" value="登录" >&nbsp;&nbsp;
    <input type="reset" class="btn" value="重置">
    </td>
</tr>
</form>
</body>
</html>